-
Notifications
You must be signed in to change notification settings - Fork 284
support project with the same order by distance function #22367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #22368
What this PR does / why we need it:
index support with the same order by distance function.
PR Type
Bug fix
Description
Enable distance function optimization for vector projections
Fix commented-out code in HNSW index optimization
Add IVFFlat index support for duplicate distance functions
Add test cases for projection with distance functions
Diagram Walkthrough
File Walkthrough
apply_indices_hnsw.go
Enable HNSW distance function optimizationpkg/sql/plan/apply_indices_hnsw.go
references
apply_indices_ivfflat.go
Add IVFFlat distance function optimizationpkg/sql/plan/apply_indices_ivfflat.go
vector_hnsw.result
Add HNSW projection test resultstest/distributed/cases/vector/vector_hnsw.result
orderbyfncolumn containing distance valuesvector_hnsw.sql
Add HNSW projection test casetest/distributed/cases/vector/vector_hnsw.sql
ORDER BY
vector_index.result
Add IVFFlat projection test resultstest/distributed/cases/vector/vector_index.result
projection
orderbyfncolumnvector_index.sql
Add IVFFlat projection test casetest/distributed/cases/vector/vector_index.sql